- value = custom_field_value ? custom_field_value.text_value : ""
= text_field_tag "custom_fields[#{custom_field.id}]", value, :class => (custom_field.required? ? "required" : "")